package hhm.android.library.datePicker.adapter.datetime;

import androidx.annotation.NonNull;

import hhm.android.library.datePicker.bean.DateParams;
import hhm.android.library.datePicker.bean.DatePick;

public class MinuteAdapter extends DatePickAdapter {

    public MinuteAdapter(@NonNull DateParams dateParams, @NonNull DatePick datePick, int selectColor) {
        super(dateParams, datePick, selectColor);
    }

    @Override
    public int getCurrentIndex() {
        return mData.indexOf(mDatePick.minute);
    }

    @Override
    public void refreshValues() {
        setData(getTimeArray(60));
    }
}
